'''
类对象
'''


class People(object):
    def __init__(self):
        self.name = "pengfeifu"
        self.sex = 'M'
        self.age = 27
        self.note = "每天进步一点点"

    def getMessage(self):
        sex = ""
        if (self.sex == 'M'):
            sex = "男"
        else:
            sex = "女"
        print("姓名：" + self.name + ",性别：%s,年纪：%s,座右铭：%s" % (sex, self.age, self.note))


if __name__ == '__main__':
    person = People()
    person.getMessage()
